package ejb.contentManagement;

import java.util.List;

import ejb.dto.RoomDTO;

public interface RoomMgr {

	/**
	 * Return RoomDTO of Room identified by <code>id</code>
	 * @param id
	 * @return RoomDTO
	 */
	RoomDTO getRoomDTO(int id);

	/**
	 * Return all RoomDTO
	 * @return all RoomDTO
	 */
	List<RoomDTO> getAllRoomsDTO();

	/**
	 * Delete Room identified by <code>id</code> from database
	 * @param id
	 * @return <true> if the operation on database is successful, <false> if not
	 */
	void deleteRoom(int id);

	/**
	 * Update Room identified by <code>updatedRoom</code> in database
	 * @param updatedRoom
	 * @return <true> if the operation on database is successful, <false> if not
	 */
	void updateRoom(RoomDTO updatedRoom);

	/**
	 * Insert Room identified by <code>newRoom</code> in database
	 * @param newRoom
	 * @return <true> if the operation on database is successful, <false> if not
	 */
	void insertRoom(RoomDTO newRoom);

}
